<div class="box">
	<div class="heading">
		<h1><img src="/assets/admin/user.png" alt="" /> <%= t('Management User') %></h1>
		<div class="buttons">
			<%= link_to "Insert", new_manager_user_path, :class => "button" %>
		</div>
	</div>
	<div class="content">
		<table class="list">
			<thead>
				<tr>
					<td width="1" style="text-align: center;">
					<input type="checkbox" class="checkall">
					</td>
					<td class="left"><%= t('ID Number') %></td>
					<td class="left"><%= t('Username') %></td>
					<td class="left"><%= t('Email') %></td>
					<td class="center"><%= t('Action') %></td>
				</tr>
			</thead>
			<tbody>
				<%= form_tag search_users_manager_users_path, :method => :get do %>
				<tr class="search">
					<td></td>
					<td><%= text_field_tag "search_iduser", nil, :placeholder => 'Enter user\'s id...',:title => 'Enter user\'s id...' %></td>
					<td><%= text_field_tag "search_username", nil, :placeholder => 'Enter user\'s fullname...',:title => 'Enter user\'s fullname...' %></td>
					<td><%= text_field_tag "search_email", nil, :placeholder => 'Enter user\'s email...',:title => 'Enter user\'s email...'  %></td>
					<td align="center" style="width:130px;"><div style="float:left"><%= submit_tag "Search", :id => "yt0" %></div>
					<% end %>
					<%= form_tag delete_multiple_users_manager_users_path, :method => :delete do %>
					<%= submit_tag "Delete", :confirm => "Are you sure ?", :id => "yt0" %></td>
				</tr>
				<% @users.each do |user| %>
				<tr>
					<td style="text-align: center;"><%= check_box_tag 'user_ids[]', user.id,false,:class =>'checkitem' %></td>
					<td class="left"><%= user.id %></td>
					<td class="left"><%= user.fullname %></td>
					<td class="left"><%= user.email %></td>
					<td class="center">
						<%= link_to 'View', manager_user_path(user), :method => :get%> | 
						<%= link_to 'Edit', edit_manager_user_path(user)%> | 
						<%= link_to 'Delete', manager_user_path(user), :method => :delete, :confirm => "Are you really want to delete \n #{user.fullname} ?"%>
					</td>
				</tr>
				<% end %>
			</tbody>
		</table>
	</div>
</div>
<% end %>